package homeWorkDay04;

/**
 * 非法年龄异常
 * 自定义异常要注意以下问题:
 * 1:定义的类名要做到见名知义
 * 2:必须是Exception的子类
 * 3:提供Exception所定义的所有构造方法
 */
public class IllegalAgeExceptionDemo extends  Exception {
    public IllegalAgeExceptionDemo(){}

    public IllegalAgeExceptionDemo(String message) {
        super(message);
    }

    public IllegalAgeExceptionDemo(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeExceptionDemo(Throwable cause) {
        super(cause);
    }

    public IllegalAgeExceptionDemo(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
